package com.tongji.quickCRUDQ.service;

import java.util.List;
import java.util.Map;
import java.util.zip.ZipInputStream;

import org.json.JSONException;

import com.tongji.quickCRUDQ.define.Row;
import com.tongji.quickCRUDQ.define.Table;
import com.tongji.quickCRUDQ.webapp.QueryParam;

public interface QuickStructureManager
{

	public abstract List templateSelect(Row row, QueryParam queryParam);
	 public String generateId(Object seed);
	 public Table getTable(String tableName);
	 public List getColumnList(String tableName);
	 public StringBuffer formatWhere(List columns,Map data);
	 public void templateInsert(Row row,Map data,String id);
	 public void templateDelete(Row row,List idList);
	 public void insertOrUpdate(Row row,List data);
	 public boolean deployProcessDefinition(ZipInputStream zis);
	 public String insert(Row row,List addData);
	 public void update(Row row,List updtData);
	public abstract String batchProcess(Row row, String delIdStr, List addData, List updtData)throws JSONException;
}